package com.gzk.user.service;

import com.gzk.basic.service.IBaseService;
import com.gzk.user.domain.User;
import com.gzk.user.dto.UserDto;

public interface IUserService extends IBaseService<User> {

    /**
     * 根据用户信息查找
     * @param userInfo
     * @return
     */
    User loadByUserInfo(String userInfo);

    /**
     * 根据电话号码查找
     * @param phone
     * @return
     */
    User loadByPhone(String phone);

    /**
     * 注册
      * @param userDto
     */
    void register(UserDto userDto);

    /**
     * 根据邮箱查找
     * @param email
     * @return
     */
    User loadByEmail(String email);
}
